home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / images / titlebar.m < prev   
Encoding:
Text File  |  2002-01-12  |  918 b   |  20 lines

  1. /* This macro can be used to compute the correct position for a gadget   */
  2. /* to be placed into the titlebar. "tbi" is a pointer to a "tbiclass"    */
  3. /* instance and "num" is the number of gadgets (zoom, depth...) that     */
  4. /* will be at the right side of the new gadget. For instance, if your    */
  5. /* window has both a zoom gadget and a depth gadget, you can compute     */
  6. /* the position of a new titlebar gadget with TBI_RELPOS(tbi,2).         */
  7. /* If there's instead only a depth gadget, you'll use TBI_RELPOS(tbi,1). */
  8. /* Note: the new gadget MUST have the GFLG_RELRIGHT flag set.            */
  9.  
  10. #define TBI_RELPOS(tbi,num ) (1 - ((1 + (num)) * ((tbi).Width - 1)))
  11. #define TBIA_Dummy        (TAG_USER + $0B0000)
  12. #define TBIA_ContentsBox  (TBIA_Dummy + $0001)      /* Get inner size (V40.12) */
  13.  
  14. CONST POPUPIMAGE=101,
  15.  MUIIMAGE=102,
  16.  SNAPSHOTIMAGE=103,
  17.  ICONIFYIMAGE=104,
  18.  PADLOCKIMAGE=105,
  19.  TBFRAMEIMAGE=106
  20.